from machine import Pin, PWM
pwm0 = PWM(Pin(23))
p0 = Pin(2, Pin.OUT)
p4 = Pin(4, Pin.OUT)
p0.value(0)#p0.value(1)
p4.value(1)#p4.value(0)
pwm0.duty(1000)